package leetcode.code231.PowerofTwo;

import leetcode.IDebug;

/**
 * @author Max
 * @date 2021年8月23日
 * @description https://leetcode-cn.com/problems/power-of-two/
 */
public abstract class PowerofTwo implements IDebug {

	abstract public boolean isPowerOfTwo(int n);

	@Override
	public void debug1() {
		int i = 1;
		boolean e = true;
		boolean result = isPowerOfTwo(i);
		System.out.println(e == result);
	}

	@Override
	public void debug2() {
		int i = 16;
		boolean e = true;
		boolean result = isPowerOfTwo(i);
		System.out.println(e == result);
	}

	@Override
	public void debug3() {
		int i = 3;
		boolean e = false;
		boolean result = isPowerOfTwo(i);
		System.out.println(e == result);
	}

	@Override
	public void debug4() {
		int i = 5;
		boolean e = false;
		boolean result = isPowerOfTwo(i);
		System.out.println(e == result);
	}

}
